<style >
.demo-spin-icon-load {
    animation: ani-demo-spin 2s linear infinite;
}
.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vertical-center-modal .ivu-modal {
  top: 0;
}
@keyframes ani-demo-spin {
    from {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.demo-spin-col {
    height: 100px;
    position: relative;
    border: 1px solid #eee;
}
</style>
<template>
     <Spin v-if="LoadShowInfo"  size="large" fix  >
         <Icon type="load-a" size=50 class="demo-spin-icon-load"></Icon>
         <div>加载中....</div>
    </Spin>
    <!-- <Modal v-model="LoadShowInfo" width="200"   class-name="vertical-center-modal">
        <Spin fix style="margin-top: 10px;">
            <Icon type="load-c" size=20 class="demo-spin-icon-load"></Icon>
            <div></div>
           
        </Spin>
        <div slot="footer" style="color:red">
            数据加载中,请稍后...
        </div>
    </Modal> -->
</template>
<script>
export default {
    data() {
        return {
            LoadShowInfo: false
        }
    },
    methods: {
        show() {
            this.LoadShowInfo = this.$store.state.LoadShowType;
        }
    },
    watch: {
        // 如果路由有变化，会再次执行该方法
        "$store.state.LoadShowType": "show"
    }
}
</script>